952b7ce132215dd66639a286447aff9e24fd12db,src/main/java/org/energyos/espi/common/service/impl/RetailCustomerServiceImpl.java,RetailCustomerServiceImpl,associateByUUID,#number#UUID#,150
Before Change
public Subscription associateByUUID(Long retailCustomerId, UUID uuId) {
Subscription subscription = null;
UsagePoint usagePoint = new UsagePoint();
usagePoint.setUUID(uuId);
RetailCustomer retailCustomer = findById(retailCustomerId);
usagePoint.setServiceCategory(new ServiceCategory(ServiceCategory.ELECTRICITY_SERVICE));
After Change
if (usagePoint == null) {
usagePoint = new UsagePoint();
usagePoint.setUUID(uuid);
usagePoint.setDescription("A Temporary UsagePoint Description");
resourceService.persist(usagePoint);